package com.kaizeli.website.exception;

import lombok.Getter;

/**
 * 错误枚举接口
 */
@Getter
public enum BusinessErrorEnum {
    FEEDBACK_ID_NOT_NULL("1001", "FeedbackId不能为空"),
    FRONTEND_CONTENT_ID_NOT_NULL("1002", "FrontendContentId不能为空"),
    CONTENT_KEY_NOT_NULL("1003", "ContentKey不能为空"),
    CONTENT_KEY_NOT_MATCH("1004", "ContentKey不匹配"),
    USER_NOT_LOGIN("1005", "用户未登录"),
    FILE_EMPTY("1006", "上传文件不能为空"),
    FILE_PATH_INVALID("1007", "文件路径非法"),
    FILE_OUT_OF_ROOT("1008", "文件路径超出根目录"),
    
    // 员工相关错误
    EMPLOYEE_NOT_FOUND("2001", "员工不存在"),
    EMPLOYEE_CODE_DUPLICATE("2002", "员工编号已存在"),
    EMPLOYEE_CODE_NOT_NULL("2003", "员工编号不能为空"),
    EMPLOYEE_NAME_NOT_NULL("2004", "员工姓名不能为空"),
    EMPLOYEE_STATUS_INVALID("2005", "员工状态值错误"),
    EMPLOYEE_ID_NOT_NULL("2006", "员工ID不能为空"),
    EMPLOYEE_INFO_NOT_NULL("2007", "员工信息不能为空"),
    EMPLOYEE_TYPE_NOT_NULL("2008", "员工类型不能为空"),
    EMPLOYEE_GENDER_NOT_NULL("2009", "性别不能为空"),
    EMPLOYEE_MARITAL_STATUS_NOT_NULL("2010", "婚姻状况不能为空"),
    EMPLOYEE_NATIVE_PLACE_NOT_NULL("2011", "籍贯不能为空"),
    EMPLOYEE_POLITICAL_STATUS_NOT_NULL("2012", "政治面貌不能为空"),
    EMPLOYEE_BIRTHDAY_NOT_NULL("2013", "生日不能为空"),
    EMPLOYEE_ID_CARD_NOT_NULL("2014", "身份证号不能为空"),
    EMPLOYEE_REGISTERED_ADDRESS_NOT_NULL("2015", "户籍地址不能为空"),
    EMPLOYEE_PHONE_NOT_NULL("2016", "联系电话不能为空"),
    EMPLOYEE_WECHAT_NOT_NULL("2017", "微信不能为空"),
    EMPLOYEE_EMAIL_NOT_NULL("2018", "电子邮箱不能为空"),
    EMPLOYEE_EDUCATION_NOT_NULL("2019", "学历不能为空"),
    EMPLOYEE_MAJOR_NOT_NULL("2020", "专业不能为空"),
    EMPLOYEE_GRADUATION_DATE_NOT_NULL("2021", "毕业时间不能为空"),
    EMPLOYEE_EMERGENCY_CONTACT_NOT_NULL("2022", "紧急联系人不能为空"),
    EMPLOYEE_EMERGENCY_PHONE_NOT_NULL("2023", "紧急联系人电话不能为空");

    private final String code;

    private final String message;

    BusinessErrorEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }
}